package com.copro.chemdb.industry;

import java.sql.ResultSet;
import java.sql.SQLException;

public class SubIndustry {

	private int id;
	private String name;
	private String mainIndustryName;
	private int mainIndustryId;

	public SubIndustry(ResultSet rs) throws SQLException {
		this.id = rs.getInt("id");
		this.name = rs.getString("name");
		this.mainIndustryName = rs.getString("mainIndustryName");
		this.mainIndustryId = rs.getInt("id_T_industry1");
	}

	public SubIndustry() {

	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMainIndustryName() {
		return mainIndustryName;
	}

	public void setMainIndustryName(String mainIndustryName) {
		this.mainIndustryName = mainIndustryName;
	}

	public int getMainIndustryId() {
		return mainIndustryId;
	}

	public void setMainIndustryId(int mainIndustryId) {
		this.mainIndustryId = mainIndustryId;
	}

}
